Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nf-test init #73

Merged
merged 8 commits into from
Nov 24, 2022
Merged

nf-test init #73

merged 8 commits into from
Nov 24, 2022

Conversation

edmundmiller
Copy link
Collaborator

@edmundmiller edmundmiller commented Nov 24, 2022

Closes #72

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/demultiplex branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

@edmundmiller edmundmiller added this to the v1.1.0 milestone Nov 24, 2022
@edmundmiller edmundmiller self-assigned this Nov 24, 2022
@edmundmiller edmundmiller changed the base branch from master to dev November 24, 2022 02:13
@edmundmiller edmundmiller changed the title Nf test nf-test init Nov 24, 2022
@github-actions
Copy link

github-actions bot commented Nov 24, 2022

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 4f89ea6

+| ✅ 154 tests passed       |+
#| ❔   1 tests were ignored |#
!| ❗   8 tests had warnings |!

❗ Test warnings:

  • nextflow_config - Config manifest.version should end in dev: '1.0.0'
  • pipeline_todos - TODO string in README.md: Add full-sized test dataset and amend the paragraph below if applicable
  • pipeline_todos - TODO string in README.md: Add citation for pipeline after first release. Uncomment lines below and update Zenodo doi and badge at the top of this file.
  • pipeline_todos - TODO string in README.md: Add bibliography of tools and data used in your pipeline
  • pipeline_todos - TODO string in WorkflowMain.groovy: Add Zenodo DOI for pipeline after first release
  • pipeline_todos - TODO string in awsfulltest.yml: You can customise AWS full pipeline tests as required
  • pipeline_todos - TODO string in methods_description_template.yml: #Update the HTML below to your prefered methods description, e.g. add publication citation for this pipeline
  • schema_description - No description provided in schema for parameter: skip_tools

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 2.6
  • Run at 2022-11-24 02:37:05

@nf-core nf-core deleted a comment from github-actions bot Nov 24, 2022
@edmundmiller
Copy link
Collaborator Author

@matthdsm Could you take a look at #74?

I also don't love how this came out. I'm debating splitting the tests up with the "tags" and maybe only running them if things change, but I'm okay with the slightly slower tests for the sake of not missing any breaking changes for now.

name "Test Bases2Fastq"
script "main.nf"

test("Should run without failures") {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we keep the naming conventions from pytest?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sateeshperi and I thought it would be good to follow whatever nf-test generate spit out. But I'm guessing beyond the basic tests the naming will be out the window, and I don't want people to get caught up in following a convention when they could have an excellent name for a specific test.

Something we can circle back around to, though!

Copy link
Collaborator

@matthdsm matthdsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests pass, LGTM!

@edmundmiller edmundmiller merged commit 8a5c1e9 into dev Nov 24, 2022
@edmundmiller edmundmiller deleted the nf-test branch November 24, 2022 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Migrate to nf-test
2 participants